package com.nhh.v.mapper;

import com.nhh.v.dto.MyExchangeInfo;
import com.nhh.v.model.NhhwakExchangeRecords;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.Date;
import java.util.List;

public interface NhhwakExchangeRecordsMapper extends Mapper<NhhwakExchangeRecords> {

  Integer exchangeTimesByUid(@Param("uid") Integer uid, @Param("startTime") Date startTime);

  int addExchangeRecord(NhhwakExchangeRecords exchangeRecords);

  List<MyExchangeInfo> qrMyExchange(String uid);
}